package cn.zwk.excel;

/**
 * 合并单元格区域（闭区间，索引从0开始）。
 */
public record MergeRegion(int firstRow, int lastRow, int firstCol, int lastCol) {
    public boolean contains(int row, int col) {
        return row >= firstRow && row <= lastRow && col >= firstCol && col <= lastCol;
    }
}

